package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.UserLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserLikeMapper {
    int insert(UserLike record);

    List<UserLike> selectAll();

    UserLike selectByUserIdAndNewsId(@Param("userId") Long userId, @Param("newsId") Long newsId);

    void deleteRelationByUserIdAndNewsId(@Param("userId") Long userId, @Param("newsId") Long newsId);
}